<template>
  <div
    class="my-header"
    :style="{
      backgroundColor: bgc,
      color: fontColor,
    }"
  >
    {{ title }}
  </div>
</template>

<script>
export default {
  // props: ["title", "bgc", "fontColor"],
  props: {
    title: {
      type: String,
      required: true,
    },
    bgc: {
      type: String,
      default: "black",
    },
    fontColor: {
      type: String,
      default: "#fff",
    },
  },
};
</script>

<style lang="less" scoped>
.my-header {
  height: 45px;
  line-height: 45px;
  text-align: center;
  /*  background-color: #ff5d1d;
  color: #fff;*/
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
}
</style>
